//package com.battcn.elasticsearch.configuration;
//
//import org.apache.http.HttpHost;
//import org.elasticsearch.client.RestClient;
//import org.elasticsearch.client.RestHighLevelClient;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author Levin
// */
//@Configuration
//public class EsAutoConfiguration {
//
//    @Bean
//    public RestHighLevelClient restHighLevelClient() {
//        return new RestHighLevelClient(
//                RestClient.builder(
//                        new HttpHost("localhost", 9200, "http")
//                        //这里如果要用client去访问其他节点，就添加进去
//                        //, new HttpHost("localhost", 9200, "http")
//                )
//        );
//    }
//
//
//}
